﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyCompanyName.AbpZeroTemplate.Daybooks
{
    using Abp.Domain.Entities;
    using Abp.Domain.Entities.Auditing;
    public class DaybookItem : FullAuditedEntity<long>, IMayHaveTenant
    {
        /// <summary>
        /// 所属日报Id
        /// </summary>
        public long DaybookId { get; set; }
        [System.ComponentModel.DataAnnotations.Schema.ForeignKey("DaybookId")]
        public virtual Daybook WithBook { get; set; }

        /// <summary>
        /// 日报内部的行流水（索引）号
        /// </summary>
        public int No { get; set; }

        /// <summary>
        /// 工作内容，事务
        /// </summary>
        [System.ComponentModel.DataAnnotations.Required]
        public string Work { get; set; }

        [System.ComponentModel.DataAnnotations.Required]
        public WorkStatus State { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        [System.ComponentModel.DataAnnotations.Required]
        public string Customer { get; set; }
        /// <summary>
        /// 产品
        /// </summary>
        [System.ComponentModel.DataAnnotations.Required]
        public string Product { get; set; }

        /// <summary>
        /// 小时(H)
        /// </summary>
        [System.ComponentModel.DataAnnotations.Required]
        public string ManHour { get; set; }
        /// <summary>
        /// 工作项的备注
        /// </summary>
        public string Remark { get; set; }


        /// <summary>
        /// 冗余日报所属的日期
        /// </summary>
        [System.ComponentModel.DataAnnotations.Required]
        public DateTime BookDay { get; set; }
        /// <summary>
        /// 冗余日报所属的用户
        /// </summary>
        [System.ComponentModel.DataAnnotations.Required]
        public long AccountId { get; set; }
        /// <summary>
        /// 冗余的用户显示名
        /// </summary>
        public string AccountName { get; set; }

        public virtual int? TenantId { get; set; }
    }
}
